package com.song.druid.util;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.validation.Validator;

@Component
public class ValidatorUtil {
    public static Validator validator;

    @Autowired
    public void setValidator(Validator validator){
        ValidatorUtil.validator = validator;
    }
}
